//
//  myActicityCell.swift
//  甜言蜜语
//
//  Created by yingli on 16/7/25.
//  Copyright © 2016年 wl. All rights reserved.
//

import UIKit
protocol myActivityBtnClicked {
    func acticityBtnClicked(id: Int) -> Void
}
class myActicityCell: UITableViewCell {
    
    var delegate: myActivityBtnClicked?
    @IBOutlet weak var iv: UIImageView!
    @IBOutlet weak var titleLbl: UILabel!
    @IBOutlet weak var publishTimeLbl: UILabel!
    @IBOutlet weak var applyNumLbl: UILabel!
    @IBOutlet weak var btn: UIButton!
    var id: Int?
    override func awakeFromNib() {
        super.awakeFromNib()
        self.btn.layer.masksToBounds = true
        self.btn.layer.cornerRadius = 15
        
    }

    override func setSelected(selected: Bool, animated: Bool) {
        super.setSelected(selected, animated: animated)
        
    }
    @IBAction func btnClicked(sender: UIButton){
        delegate?.acticityBtnClicked(id!)
        
    }
    

}
